<?php
namespace app\passport\controller;

use app\common\controller\PassportBase;
use think\Loader;
use think\Config;

class Index extends PassportBase
{

	public function _initialize()
	{
		$logic = Loader::model('passport','logic');
		if(!$logic->checkLogin()){
			$this->redirect('Login/index');
		}
	}

	public function index()
	{
		$logic = Loader::model('passport','logic');
		//通行证主页user_index
		$user = \think\Session::get(Config::get('passport_identifier'));
		$this->assign('data',$user);
		return $this->fetch();
	}
}
